program SquareEquation;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  SolvingOfSquareEquation = class
  a, b, c: integer;
  procedure solve;
end;

{ SolvingOfSquareEquation }

procedure SolvingOfSquareEquation.solve;
begin
  if (a<>0) then
  begin
    if ((b*b-4*a*c)<0) then
      writeln ('No solution');
    if ((b*b-4*a*c)=0) then
      Writeln (-b/(2*a));
    if ((b*b-4*a*c)>0) then
    begin
      Writeln ((-b+sqrt(b*b-4*a*c))/(2*a):0:6);
      Writeln ((-b-sqrt(b*b-4*a*c))/(2*a):0:6);
    end;
  end;
  if(a=0) and (b<>0) then
    writeln (-c/b);
  if(a=0) and (b=0) then
  begin
    if (c=0) then
      Writeln ('Infinite number of solutions');
    if (c<>0) then
      writeln ('No solution');
  end;
end;

var
  s1: SolvingOfSquareEquation;

begin
  s1:=SolvingOfSquareEquation.Create;
  readln (s1.a, s1.b, s1.c);
  s1.solve;
  readln;
end.
